import 'package:flutter/material.dart';


class HomePage extends StatefulWidget{

  @override
  State<StatefulWidget> createState()=> HomePageState();

}

class HomePageState extends State<HomePage>{
  @override
  Widget build(BuildContext context){
    return Column(
      children: [
        Card(
          child: ListTile(
            title: Text('xxx'),
            leading: CircleAvatar(backgroundImage: NetworkImage('https://img1.baidu.com/it/u=162316806,732279952&fm=26&fmt=auto&gp=0.jpg'),),
            subtitle: Text('xndkadsahdusahuidsaiu'),
          ),
        ),
        Container(
          color: Colors.black,
          width: 500,
          height: 500,
          child: Stack(
          alignment: Alignment.center,
          
          children: [
            Positioned(
              left: 20,
              top: 20,
              child: Container(
                width: 200,
                height: 200,
                color: Colors.blue,
              ),
            ),
            Positioned(
                child: Container(
                  child: FloatingActionButton(
                  onPressed: () {
                    print('建哥');
                    Navigator.of(context).pushNamed('/test',arguments: {
                      'name':"李子建",
                    });
                  },
                  child: Text("点击"),
                  ),
                  width: 900,
                  height: 600,
                ),

              ),
          ],
        ),
        )
      ],
    );
  }
}